/**
 * 
 */
package routing.route;

import java.util.HashMap;

/**
 * @author chevy
 *
 */
public class Route implements Comparable<Route>{
	
	private String destinantionNetwork;
	
	private HashMap<String, Double> posibleExitInterfaces;
	
	private Integer metric;

	

	public Route(String destinantionNetwork,
			HashMap<String, Double> posibleExitInterfaces, Integer metric) {
		this.destinantionNetwork = destinantionNetwork;
		this.posibleExitInterfaces = posibleExitInterfaces;
		this.metric = metric;
	}

	/**
	 * @return the destinantionNetwork
	 */
	public String getDestinantionNetwork() {
		return destinantionNetwork;
	}

	public HashMap<String, Double> getPosibleExitInterfaces() {
		return posibleExitInterfaces;
	}

	/**
	 * @return the metric
	 */
	public Integer getMetric() {
		return metric;
	}

	public int compareTo(Route o) {
		return this.metric - o.getMetric();
	}

}
